<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class Test extends Controller
{
    public function index(Request $request){
        echo $request->input('name').'</br>';
        echo $request->input('address')."</br>";
        echo 'method'.':'.$request->method()."</br>";

        if($request->isMethod('get')){
            echo 'is get ';
        }else{
            echo 'is post';
        }
        echo '---------';
    }
}
